﻿@using Smartstore.Core.Catalog.Search

@model CatalogSearchResult

@{
    if (Model.TotalHitsCount > 1)
    {
        var hits = await Model.GetHitsAsync();
        var firstItemIndex = hits.FirstItemIndex;
        var lastItemIndex = hits.LastItemIndex;

        var pageIndex = $"<span class='lrm'>{firstItemIndex.ToString("N0")}-{lastItemIndex.ToString("N0")}</span>";
        var pageSize = $"<span class='lrm'>{Model.TotalHitsCount.ToString("N0")}</span>";

        <h5 class="search-hitcount">@Html.Raw(T("Search.PagingInfo", pageIndex, pageSize))</h5>
    }
}